import React from 'react'
import '@/App.scss'
import {useRef} from 'react'
export default function DOMOper() {
  const boxRef=useRef()
  return (
    <div>
       <div className="box" 
            ref={boxRef}
            onClick={()=>{
            boxRef.current.style.backgroundColor='red'
       }}></div>
    </div>
  )
}
